home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / expand_define < prev    next >
Text File  |  2001-04-06  |  717b  |  25 lines

  1. SYNOPSIS
  2.         string expand_define (string name)
  3.         string expand_define (string name, string arg, ...)
  4.  
  5. DESCRIPTION
  6.         Expands the macro <name> with the argument(s) <arg>... (default is
  7.         one empty string "").
  8.         Result is the expanded macro, or 0 if there is no macro with
  9.         that name.
  10.  
  11.         This efun is applicable only while an object is compiled,
  12.         therefore its usage is restricted to a few functions like the
  13.         H_INCLUDE_DIRS driver hook, or the masters runtime_error()
  14.         function.
  15.  
  16. EXAMPLE
  17.         While compiling 'foo.c':
  18.           expand_define("__FILE__") --> "file.c"
  19.  
  20. HISTORY
  21.         Introduced in 3.2.1@93.
  22.  
  23. SEE ALSO
  24.         hooks(C), runtime_error(M)
  25.